package com.idp.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.idp.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品实体类
 * @author King
 */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName("demo_goods")
public class GoodsEntity extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/** id */
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private String id;
	/** 商品类别 */
    @TableField("category_id")
	private String categoryId;
	/** 商品名称 */
    @TableField("goods_name")
	private String goodsName;
	/** 商品标签 */
    @TableField("tag")
	private String tag;
	/** 商品详情 */
    @TableField("description")
	private String description;
	/** 商品缩略图 */
    @TableField("thumb_image")
	private String thumbImage;
	/** 商品banner图 */
    @TableField("banner_images")
	private String bannerImages;
	/** 库存 */
    @TableField("remain_count")
	private Integer remainCount;
	/** 销量 */
    @TableField("sell_count")
	private Integer sellCount;
	/** 价格 */
    @TableField("price")
	private BigDecimal price;
	/** 状态：1待上架，2上架销售，3下架 */
    @TableField("status")
	private String status;
	/** 上架时间 */
    @TableField("add_time")
	private Date addTime;

}
